import request from './request'
const login = params => {
    return request({
        url: '/user/login',
        method: 'post',
        params
    })
}
const register = params => {
    return request({
        url: '/user/register',
        method: 'post',
        params
    })
}
const remove = params => {
    return request({
        url: '/user/delete',
        method: 'post',
        params
    })
}
const detail = params => {
    return request({
        url: '/user/detail',
        method: 'get',
        params
    })
}
const list = params => {
    return request({
        url: '/user/list',
        method: 'get',
        params
    })
}
export default {
    login,
    register,
    remove,
    detail,
    list
}